<?php
declare(strict_types=1);

namespace LowCode\UI;

use LowCode\Node;
use LowCode\Support\JsBind;

/**
 * @method static static make(string|JsBind $is);
 */
class Component extends Node
{
    public function __construct(string|JsBind $is)
    {
        parent::__construct();
        $this->is($is);
    }

    /**
     * @param string|JsBind $is
     * @return $this
     */
    public function is(string|JsBind $is): static
    {
        return $this->prop("id",$is);
    }
}
